home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10145 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.unix.questions,comp.lang.c
  4. Subject: Re: Bold ASCII
  5. Date: Fri, 15 Mar 96 16:00:00 GMT
  6. Organization: none
  7. Message-ID: <826905600snz@genesis.demon.co.uk>
  8. References: <4i7cpj$hqa@nexen.nexen.com> <31494BF9.1654@cs.bham.ac.uk>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <31494BF9.1654@cs.bham.ac.uk> txk@cs.bham.ac.uk "Ghoti" writes:
  15.  
  16. >Matthew B. Doar wrote:
  17. >> 
  18. >> Anyone know how to get bold strings of text
  19. >> from a program (termcap related?)
  20. >> 
  21. >> e.g.
  22. >> 
  23. >> printf("\012 This is in bold \013\n");
  24. >> 
  25. >> where \012 and \013 are whatever the magic ascii values
  26. >> are to turn on and off bold.
  27. >> 
  28. >> ~Matt
  29. >
  30. >The ascii values are \033[1m to turn bold on and \033[0m to turn it off.
  31. >(out of interest)
  32.  
  33. Control sequences are specific to the type of terminal you are using
  34. (which may not even support bold). ASCII is simply a character set - it
  35. doesn't define screen attributes.
  36.  
  37. -- 
  38. -----------------------------------------
  39. Lawrence Kirby | fred@genesis.demon.co.uk
  40. Wilts, England | 70734.126@compuserve.com
  41. -----------------------------------------
  42.